package day09API.stream;

import java.io.*;

/**
 * @author DBX
 * @effect 缓冲字符输入流读取文本数据
 *              将当前程序源代码读取出来并输出到控制台
 * @date 2021/8/27 0027 - 16:38
 */
public class BRDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("src/day09API/stream/BRDemo.java");
//        FileInputStream fis = new FileInputStream("D:\\桌面文件\\JDBC课堂笔记.txt");
        InputStreamReader isr = new InputStreamReader(fis);
        BufferedReader br = new BufferedReader(isr);
        String line;
        while ((line = br.readLine())!=null){
            System.out.println(line);
        }
        br.close();
    }
}
